console.log(__dirname);
console.log(__dirname);
console.error("错误信息控制台输出")
console.log(process.env.PATH);
console.log(process.pid);
console.log(process.argv);
const myURL=new URL("/foo","https://example.com");
myURL.searchParams.append("key","value");
console.log(myURL.href);
let params =new URLSearchParams(myURL.searchParams);
params.append("key1","value1");
params.append("key2","李四");
console.log(params);
myURL.search=params;
console.log(myURL.href);
const buf=Buffer.from("r中国","utf-8");